body {
    min-height: 100%;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.5;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

[data-theme="light"] {

    #adminTabPage {
        background-image: linear-gradient(0deg, #eee 0, #eee 50%, #fff 50%, #fff 100%);
        background-size: 90% 2rem;
        background-repeat: repeat-y;
        background-position: top;
        background-color: #FFF;
    }

    .ub-panel-frame {
        &.left-toggle {

            .left:not(:hover) .menu {
                & > .menu-item:not(:has(.children)) > .title {
                    padding-left: 0;
                }
            }

            @media (max-width: 800px) {
                .left:not(:hover) .menu {
                    & > .menu-item:not(:has(.children)) > .title {
                        padding-left: 0.75rem;
                    }

                    & > .menu-item.active:not(:has(.children)) > .title {
                        padding-left: 0.5rem;
                    }
                }
            }
        }

        .left {

            .logo {
                text-align: center;
                color: #000;
            }

            .menu {
                .menu-item {

                    & > .title {
                        transition: color 0s;
                    }

                    &:not(:has(.children)) {
                        background-color: var(--panel-menu-background);
                        border-right: none;

                        & > .title {
                            &:hover {
                                color: var(--color-primary);
                            }
                        }

                        &.active {
                            & > .title {
                                background: var(--color-primary-gradient-bg);
                                color: #FFF;
                                border-radius: 0.25rem;
                                line-height: 2rem;
                                margin-top: 0.15rem;
                                margin-bottom: 0.15rem;
                                //margin: 0.15rem 0.25rem;
                                box-shadow: 0 0 0.25rem #CCC;
                                text-shadow: 0 0 0.1rem #000;
                            }
                        }
                    }
                }

                & > .menu-item.active:not(:has(.children)) > .title {
                    margin-left: 0.25rem;
                    margin-right: 0.25rem;
                    padding-left: 0.5rem;
                }

                & > .menu-item > .children > .menu-item.active > .title {
                    margin-left: 0.25rem;
                    margin-right: 0.25rem;
                    padding-left: 1.55rem;
                }

                & > .menu-item > .children > .menu-item > .children > .menu-item.active > .title {
                    margin-left: 0.25rem;
                    margin-right: 0.25rem;
                    padding-left: 2.1rem;
                }
            }
        }

        .right {
            .top {
                .menu {
                    a {
                        border-radius: 0.25rem;
                        line-height: 1.6rem;
                        border-top: none;
                        margin-top: .25rem;
                        background: #FFF;
                        border: 1px solid var(--color-body-line);
                        font-weight: bold;
                        margin-right: 0.2rem;

                        &:first-child {
                            margin-right: 0;
                        }

                        .close {
                            color: #999;
                        }

                        &.active {
                            color: var(--color-primary);
                            background-color: var(--color-primary-light-bg);

                            &:before {
                                background-color: var(--color-primary);
                            }

                            .close {
                                color: var(--color-primary);

                                &:hover {
                                    background-color: #CCC;
                                    border-radius: 50%;
                                    color: red;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.ub-admin-login {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    flex-direction: column;

    .login-box {
        display: flex;
        width: 600px;
        box-shadow: 0px 20px 80px 0px rgba(0, 0, 0, 0.3);
        border-radius: 0.5rem;

        .info {
            background-color: var(--color-primary);
            flex-grow: 1;
            flex-basis: 0;
            border-radius: 0.5rem 0 0 0.5rem;
            display: flex;
            flex-direction: column;
            padding: 2rem 0.5rem;
            color: #FFF;
            text-align: center;
            background-image: url('');
            background-position: bottom;
            background-size: contain;
            background-repeat: no-repeat;
            text-shadow: 0 0 0.1rem #999999;
            justify-content: start;

            .title {
                font-size: 1.2rem;
                line-height: 1.4rem;
            }

            .slogan {
                font-size: 0.7rem;
                margin-top: 0.5rem;
            }
        }

        .form {
            background: #FFF;
            padding: 20px;
            width: 50%;
            border-radius: 0 0.5rem 0.5rem 0;
            flex-shrink: 0;

            .line {
                padding: 15px 10px;

                input {
                    width: 100%;
                    font-size: 14px;
                    line-height: 40px;
                    height: 40px;
                }
            }
        }
    }

    .btn {
        background: var(--color-primary);
        border-color: var(--color-primary);

        &:hover, &:active, &:focus {
            background: var(--color-primary);
        }
    }
}

@media (max-width: 800px) {
    .ub-admin-login {
        display: block;
        background: #FFF;

        .login-box {
            display: block;
            border-radius: 0;
            width: 100%;
            box-shadow: none;

            .info {
                border-radius: 0;
                text-align: left;
                background-position: right;
                padding: 1.5rem;
            }

            .form {
                width: 100%;
                border-radius: 0;
            }
        }
    }
}

#adminMainPage {
    height: 100%;

    &.hidden {
        display: none;
    }
}

#adminTabPage {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: url(./../../image/loading.svg) no-repeat center;
    background-size: 50%;

    &.hidden {
        display: none;
    }

    iframe {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;

        &.hidden {
            left: -200%;
            top: -200%;
        }
    }
}
